app.service('brandService',function ($http) {
    this.getBrandList = function () {
        return $http.get('../brand/getBrandList.do');
    }
    this.findAll = function () {
        return $http.get('../brand/brandFindAll.do');
    }
    this.deleteBrand  =function (selectIds) {
        return $http.post('../brand/deleteBrand.do',selectIds);
    }
    this.saveBrand = function (entity) {
        return $http.post('../brand/saveBrand.do',entity);
    }
    this.findOne = function (id) {
        return $http.get('../brand/findOne.do?id='+id);
    }
    this.search = function (page,rows,searchEntity) {
        return $http.post('../brand/search.do?pageNum='+page+"&pageSize="+rows,searchEntity);
    }
    this.findPage = function (page,rows) {
        return  $http.get('../brand/brandFindPage.do?pageNum='+page+"&pageSize="+rows);
    }
});